{%extends "include/Base.html"%}
{% block title %}用户管理{% endblock %}
{%block content %}

<div class="row-fluid">

						<div class="span12">

							<!-- BEGIN EXAMPLE TABLE PORTLET-->

							<div class="portlet box green">

								<div class="portlet-title">

									<div class="caption"><i class="icon-globe"></i>用户表单</div>


								</div>

								<div class="portlet-body">

									<table class="table table-striped table-bordered table-hover table-full-width" id="sample_1">

										<thead>

											<tr>

												<th>用户名</th>

												<th>性别</th>

												<th class="hidden-480">等级</th>

												<th class="hidden-480">注册时间</th>

												<th class="hidden-480">是否可用</th>

											</tr>

										</thead>

										<tbody id="UserTable">

										</tbody>

									</table>

								</div>

							</div>

							<!-- END EXAMPLE TABLE PORTLET-->

							<!-- BEGIN EXAMPLE TABLE PORTLET-->


							<!-- END EXAMPLE TABLE PORTLET-->

						</div>

					</div>
{% endblock %}

{% block script %}
<script type="text/javascript">

$(function(){
	$.post("UserManager",function(data){
	  var UserDate=$.parseJSON(data);
	  var table="";
		for (var user in UserDate){
			table+="<tr><td>"+UserDate[user].UserName+"</td><td>"+UserDate[user].Sex+"</td><td class='hidden-480'>"+UserDate[user].RegistTime+"</td><td class='hidden-480'>"+UserDate[user].Score+"</td><td class='hidden-480'>"+UserDate[user].UserName+"</td></tr>"
		}
		$("#UserTable").append(table)
	})
})

</script>
{% endblock %}
